#include <stdio.h>
#include <string.h>

extern "C"
char *local_str()
{
	char local[] = "abc";
	return local;
}

void* memcpy_r(void*pDest, void* pFrom, size_t size)
{
	assert(pDest != NULL && pFrom != NULL);
	
	char *pTo = (char*)pDest;
	char *from = (char*)pFrom;

	while(size--)
		*pTo++ = *pDest++;


	return pDest;
	
}


int main(int argc, char *argv[])
{
	printf("local str is %s\n", local_str());
}

